package com.travelgroup.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum PayStatus implements IEnum<Integer> {
    WAITING(0, "待支付"),
    SUCCESS(1, "支付成功"),
    FAILURE(2, "支付失败"),
    REFUND(3, "已退款");

    @EnumValue
    private final Integer value;
    @JsonValue
    private final String type;
    PayStatus(Integer value, String type) {
        this.value = value;
        this.type = type;
    }
}
